class HelloOhos < Formula
  desc "hell o-o hos"
  homepage "https://github.com/rainlow/hello-ohos"
  url "https://github.com/rainlow/hello-ohos/archive/refs/tags/v1.0.1.tar.gz"
  sha256 "7dda892ada82a0c3d9977f5239bc192647a684b37f08d2ab4adf84ee68a3fb74"
  license "MIT"

  bottle do
    root_url "https://brew.obs.cn-east-3.myhuaweicloud.com/bottles"
    sha256 cellar: :any_skip_relocation, arm64_linux: "452fbed79c8d221600811751f30599c278e9206c99bdcdac3bc4a06e25912632"
  end

  def install
    system "make", "PREFIX=#{prefix}",
                   "install"
  end

  test do
    system bin/"hello-ohos", prefix
  end
end

